home *** CD-ROM | disk | FTP | other *** search
- //===========================================================================
- // This file was generated as part of an ASP.NET 2.0 Web project conversion.
- // This code file 'App_Code\Migrated\Stub_Info_aspx_cs.cs' was created and contains an abstract class
- // used as a base class for the class 'Migrated_Info' in file 'Info.aspx.cs'.
- // This allows the the base class to be referenced by all code files in your project.
- // For more information on this code pattern, please refer to http://go.microsoft.com/fwlink/?LinkId=46995
- //===========================================================================
-
-
- using System;
- using System.Collections;
- using System.ComponentModel;
- using System.Data;
- using System.Data.OleDb;
- using System.Drawing;
- using System.Text.RegularExpressions;
- using System.IO;
- using System.Management;
- using System.Runtime.Remoting.Channels;
- using System.Runtime.Remoting.Channels.Tcp;
- using System.Web;
- using System.Web.Caching;
- using System.Web.Security;
- using System.Web.SessionState;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.HtmlControls;
- using System.Xml;
- using GBPVR.Public;
- using GBPVR.Backend.Common; // For IRecordingService
-
-
- namespace gbweb
- {
-
-
- abstract public class Info : System.Web.UI.Page
- {
- private static IRecordingService cachedRecordingService = null;
-
- public static Regex liveTVRegex = new Regex(@":Live TV \((.*\.mpg)\)$", RegexOptions.IgnoreCase | RegexOptions.Compiled);
-
- public static IRecordingService GetRecordingService()
- {
- if (cachedRecordingService != null) return cachedRecordingService;
-
- string serviceLocation = Global.Config.SelectSingleNode("/settings/RecordingServiceLocation").InnerText;
- if (serviceLocation == null) serviceLocation = "tcp://localhost:7968/RecordingRemote";
- cachedRecordingService = (IRecordingService)Activator.GetObject(typeof(IRecordingService), serviceLocation);
- if (cachedRecordingService == null)
- {
- Logger.Error("Couldn't open communication channel remote recording service");
- }
- return cachedRecordingService;
- }
-
- }
-
-
-
- }
-